﻿<local:DocumentBase x:Class="WPFExcelReport.Purchase"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:db="clr-namespace:ReflectionStudio.Core.Database;assembly=ReflectionStudio.Core"
                xmlns:fd="clr-namespace:Labs.Filtering;assembly=ReflectionStudio.Core"
        xmlns:wep="clr-namespace:WPFExcelReport"
       Height="700" Width="1024" 
          
         Loaded="Window_Loaded"
        Title="Purchase"  
     >
    <local:DocumentBase.Resources>
        <db:INTEXDataSet x:Key="iNTEXDataSet" />
    </local:DocumentBase.Resources>
    <Grid DataContext="{Binding}" Height="518" Width="815">
        <Grid.RowDefinitions>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
        </Grid.ColumnDefinitions>
        <GroupBox Header="采购原料报表" Height="100" HorizontalAlignment="Left" Name="groupBox1" VerticalAlignment="Top" Width="814">
            <Grid Height="80" Width="804">
                <Grid.ColumnDefinitions>
                </Grid.ColumnDefinitions>
                <Grid HorizontalAlignment="Left" Margin="4,10,0,0" Name="grid1" VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Label Content="纱线品种:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                    <ComboBox DisplayMemberPath="GSART" SelectedValuePath="GSART" Grid.Column="1" Height="23" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding Path=GSDAT, Source={StaticResource iNTEXDataSet}}" Margin="3,3,0,3" Name="GSARTComboBox" VerticalAlignment="Center" Width="157" IsEditable="True" SelectionChanged="GSARTComboBox_SelectionChanged" HorizontalAlignment="Left">
                        <ComboBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <VirtualizingStackPanel />
                            </ItemsPanelTemplate>
                        </ComboBox.ItemsPanel>
                    </ComboBox>
                </Grid>
                <Grid HorizontalAlignment="Left" Margin="237,10,0,0" Name="grid2" VerticalAlignment="Top" Width="104">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="43" />
                        <ColumnDefinition Width="129" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Label Content="变量:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                    <ComboBox Grid.Column="1" Height="23" HorizontalAlignment="Left" IsSynchronizedWithCurrentItem="True" IsEditable="True" Margin="3,3,0,3" Name="GSVARComboBox" VerticalAlignment="Center" Width="52" SelectionChanged="GSVARComboBox_SelectionChanged">
                        <ComboBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <VirtualizingStackPanel />
                            </ItemsPanelTemplate>
                        </ComboBox.ItemsPanel>
                    </ComboBox>
                </Grid>
                <Grid HorizontalAlignment="Left" Margin="343,10,0,0" Name="grid3" VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Label Content="色号:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                    <ComboBox Grid.Column="1" Height="23" HorizontalAlignment="Left" IsSynchronizedWithCurrentItem="True" IsEditable="True" Margin="3,3,0,3" Name="GSCFARBEComboBox" VerticalAlignment="Center" Width="89">
                        <ComboBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <VirtualizingStackPanel />
                            </ItemsPanelTemplate>
                        </ComboBox.ItemsPanel>
                    </ComboBox>
                </Grid>
                <Button Content="采购原料报表" Name="PurchaseMaterial" Click="PurchaseMaterial_Click" Margin="702,46,15,6" />
                <Grid HorizontalAlignment="Left" Margin="488,10,0,0" Name="grid4" VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Label Content="供应商:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                    <ComboBox DisplayMemberPath="LSLIEFNR" SelectedValuePath="LSLIEFNR" Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" IsSynchronizedWithCurrentItem="True" IsEditable="True" ItemsSource="{Binding Path=LIEFDAT, Source={StaticResource iNTEXDataSet}}" Margin="3" Name="LSLIEFNRComboBox" VerticalAlignment="Center" Width="120">
                        <ComboBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <VirtualizingStackPanel />
                            </ItemsPanelTemplate>
                        </ComboBox.ItemsPanel>
                    </ComboBox>
                </Grid>
                <Label Content="下单时间从" Height="26" 
                       HorizontalAlignment="Left" Margin="4,46,0,0" Name="label1" 
                       VerticalAlignment="Top" Width="70" 
                       />
                <Label Content="至" Height="28" HorizontalAlignment="Left" Margin="176,46,0,0" Name="label2" VerticalAlignment="Top" Width="29" />
                <Label Content="入仓时间从" Height="28" HorizontalAlignment="Left" Margin="317,0,0,8" Name="label3" VerticalAlignment="Bottom" Width="70" />
                <Label Content="至" Height="28" HorizontalAlignment="Left" Margin="489,45,0,0" Name="label4" VerticalAlignment="Top" Width="29" />
                <DatePicker Height="25" HorizontalAlignment="Left" Margin="76,47,0,0" Name="FromOrderDate" VerticalAlignment="Top" Width="95" 
                                SelectedDateChanged="FromOrderDate_SelectedDateChanged"/>
                <DatePicker Height="25" HorizontalAlignment="Left" Margin="204,46,0,0" Name="EndOrderDate" VerticalAlignment="Top" Width="95" 
                                SelectedDateChanged="EndOrderDate_SelectedDateChanged"/>
                <DatePicker Height="25" HorizontalAlignment="Left" Margin="386,46,0,0" Name="FromIncomeDate" VerticalAlignment="Top" Width="95" 
                                SelectedDateChanged="FromIncomeDate_SelectedDateChanged"/>
                <DatePicker Height="25" HorizontalAlignment="Right" Margin="0,46,193,0" Name="EndIncomeDate" VerticalAlignment="Top" Width="95" 
                                SelectedDateChanged="EndIncomeDate_SelectedDateChanged"/>
            </Grid>
        </GroupBox>
        <GroupBox Header="供应商采购统计" Height="61" HorizontalAlignment="Left" Margin="0,100,0,0" Name="groupBox2" VerticalAlignment="Top" Width="814">
            <Grid Height="43">
                <Label Content="下单时间从" Height="26" HorizontalAlignment="Left" Margin="13,11,0,0" Name="label6" VerticalAlignment="Top" Width="70" />
                <Label Content="至" Height="28" HorizontalAlignment="Left" Margin="183,11,0,0" Name="label7" VerticalAlignment="Top" Width="29" />
                <Button Content="按供应商统计采购量" Name="Supp_Pur_Summ" Click="Supp_Pur_Summ_Click" Margin="339,11,313,6" />
                <DatePicker HorizontalAlignment="Left" Margin="2,44,0,0" Name="datePicker1" VerticalAlignment="Top" />
                <DatePicker Height="25" HorizontalAlignment="Left" Margin="86,9,0,0" Name="OpenOrderDate1" VerticalAlignment="Top" Width="95"
                                SelectedDateChanged="OpenOrderDate1_SelectedDateChanged"/>
                <DatePicker Height="25" HorizontalAlignment="Right" Margin="0,9,499,0" Name="OpenOrderDate2" VerticalAlignment="Top" Width="95" 
                                SelectedDateChanged="OpenOrderDate2_SelectedDateChanged"/>
            </Grid>
        </GroupBox>
        <GroupBox Header="原料订购" Height="54" HorizontalAlignment="Left" Margin="2,164,0,0" Name="groupBox3" VerticalAlignment="Top" Width="812">
            <Grid>
                <Grid.ColumnDefinitions>
                </Grid.ColumnDefinitions>
                <Button Content="原料订购记录" Height="25" HorizontalAlignment="Left" Margin="11,3,0,0" Name="Pur_Mat_List" VerticalAlignment="Top" 
                        Click ="Pur_Mat_List_Click"  Width="106" />
            </Grid>
        </GroupBox>
        <GroupBox Header="原料结存" Height="57" HorizontalAlignment="Left" Margin="1,220,0,0" Name="groupBox4" VerticalAlignment="Top" Width="813">
            <Grid>
                <Button Content="原料结存表" Height="25" HorizontalAlignment="Left" Margin="12,6,0,0" Name="Material_Inventory" VerticalAlignment="Top" 
                        Click ="Material_Inventory_Click" Width="106" />
            </Grid>
        </GroupBox>
    </Grid>
</local:DocumentBase>
